package com.xintai.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.core.domain.entity.SysDictData;
import com.xintai.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

/**
 * 客户对象 erp_client
 * 
 * @author xintai
 * @date 2021-01-12
 */
public class ErpClient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer cId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String cName;

    /** 客户简码 */
    @Excel(name = "客户简码")
    private String cJm;

    /** 经办人ID */
    private Integer jbrId;

    @Excel(name = "经办人", targetAttr = "jbrName", type = Excel.Type.EXPORT)
    private ErpJingbanren erpJingbanren;

    /** 客户简称 */
    @Excel(name = "客户简称")
    private String cJc;

    /** 数据字典，账户类型 clientType */
    private Integer dictCode;

    @Excel(name = "账户类型", targetAttr = "dictLabel", type = Excel.Type.EXPORT)
    private SysDictData sysDictData;

    /** 业务员 */
    private Integer userId;

    @Excel(name = "业务员", targetAttr = "nickName", type = Excel.Type.EXPORT)
    private SysUser sysUser;

    /** 联系人 */
    @Excel(name = "联系人")
    private String cPtcontact;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String cPhone;

    /** 是否本公司：0 否， 1 是 */
    private Integer cIsmysoft;

    @Excel(name = "是否本公司")
    private String cIsmysoftStr;

    /** 是否协议户：0 否， 1 是 */
    private Integer cIsxieyi;

    @Excel(name = "是否协议户")
    private String cIsxieyiStr;

    /** 状态： 0 正常，1 删除 */
    private Integer cIsdel;

    /** 维护人 */
    private Integer cUserId;

    @Excel(name = "维护人", targetAttr = "nickName", type = Excel.Type.EXPORT)
    private SysUser cUser;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date cTime;

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public String getcJm() {
        return cJm;
    }

    public void setcJm(String cJm) {
        this.cJm = cJm;
    }

    public Integer getJbrId() {
        return jbrId;
    }

    public void setJbrId(Integer jbrId) {
        this.jbrId = jbrId;
    }

    public ErpJingbanren getErpJingbanren() {
        return erpJingbanren;
    }

    public void setErpJingbanren(ErpJingbanren erpJingbanren) {
        this.erpJingbanren = erpJingbanren;
    }

    public String getcJc() {
        return cJc;
    }

    public void setcJc(String cJc) {
        this.cJc = cJc;
    }

    public Integer getDictCode() {
        return dictCode;
    }

    public void setDictCode(Integer dictCode) {
        this.dictCode = dictCode;
    }

    public SysDictData getSysDictData() {
        return sysDictData;
    }

    public void setSysDictData(SysDictData sysDictData) {
        this.sysDictData = sysDictData;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public String getcPtcontact() {
        return cPtcontact;
    }

    public void setcPtcontact(String cPtcontact) {
        this.cPtcontact = cPtcontact;
    }

    public String getcPhone() {
        return cPhone;
    }

    public void setcPhone(String cPhone) {
        this.cPhone = cPhone;
    }

    public Integer getcIsmysoft() {
        return cIsmysoft;
    }

    public void setcIsmysoft(Integer cIsmysoft) {
        this.cIsmysoft = cIsmysoft;
    }

    public String getcIsmysoftStr() {
        return cIsmysoftStr;
    }

    public void setcIsmysoftStr(String cIsmysoftStr) {
        this.cIsmysoftStr = cIsmysoftStr;
    }

    public Integer getcIsxieyi() {
        return cIsxieyi;
    }

    public void setcIsxieyi(Integer cIsxieyi) {
        this.cIsxieyi = cIsxieyi;
    }

    public String getcIsxieyiStr() {
        return cIsxieyiStr;
    }

    public void setcIsxieyiStr(String cIsxieyiStr) {
        this.cIsxieyiStr = cIsxieyiStr;
    }

    public Integer getcIsdel() {
        return cIsdel;
    }

    public void setcIsdel(Integer cIsdel) {
        this.cIsdel = cIsdel;
    }

    public Integer getcUserId() {
        return cUserId;
    }

    public void setcUserId(Integer cUserId) {
        this.cUserId = cUserId;
    }

    public SysUser getcUser() {
        return cUser;
    }

    public void setcUser(SysUser cUser) {
        this.cUser = cUser;
    }

    public Date getcTime() {
        return cTime;
    }

    public void setcTime(Date cTime) {
        this.cTime = cTime;
    }

    @Override
    public String toString() {
        return "ErpClient{" +
                "cId=" + cId +
                ", cName='" + cName + '\'' +
                ", cJm='" + cJm + '\'' +
                ", jbrId=" + jbrId +
                ", erpJingbanren=" + erpJingbanren +
                ", cJc='" + cJc + '\'' +
                ", dictCode=" + dictCode +
                ", sysDictData=" + sysDictData +
                ", userId=" + userId +
                ", sysUser=" + sysUser +
                ", cPtcontact='" + cPtcontact + '\'' +
                ", cPhone='" + cPhone + '\'' +
                ", cIsmysoft=" + cIsmysoft +
                ", cIsmysoftStr='" + cIsmysoftStr + '\'' +
                ", cIsxieyi=" + cIsxieyi +
                ", cIsxieyiStr='" + cIsxieyiStr + '\'' +
                ", cIsdel=" + cIsdel +
                ", cUserId=" + cUserId +
                ", cUser=" + cUser +
                ", cTime=" + cTime +
                '}';
    }
}
